package classTest.HomeWork.day05;

import java.io.*;

public class Test02 {
    public static void main(String[] args) throws IOException {
        FileInputStream fis =new FileInputStream("video.mp4");
        BufferedInputStream bis =new BufferedInputStream(fis);
        FileOutputStream fos =new FileOutputStream("D:/video.io.mp4");
        BufferedOutputStream bos =new BufferedOutputStream(fos);

        int len;
        byte[]data=new byte[1024*1000];
        while ((len=bis.read(data))!=-1){
            bos.write(data,0,len);

        }
        System.out.println("搞定");
        bis.close();
        bos.close();
    }
}
